using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Activa.CoolStorage;
using CodeStory.Core.ObjectEntity;
using CodeStory.Core.UI;
using CodeStory.Core;

namespace CodeStory.WebApplication.Modules.Core.Admin
{
	[NavigationPortlet("CodeStory_Core_Admin_PageManager")]
	public partial class PageManager : Portlet
	{
		protected override void OnInit(EventArgs e) {
			Load += new EventHandler(PageManager_Load);
			base.OnInit(e);
		}

		void PageManager_Load(object sender, EventArgs e) {
			//throw new Exception("The method or operation is not implemented.");
			if (!IsPostBack) {
				BindTabList();
			}
		}

		private void BindTabList() {
			CSList<PageObject> list = PageObject.List();
			tabGridView.DataSource = list;
			tabGridView.DataBind();
		}
	}
}